export type MessageStatusType = {
  label: string;
  value: string;
  count: number;
  type: string;
  code: string;
  [props: string]: any;
};

export const msgStatusMap = new Map([
  [1, ["message-status--unread", "未读"]],
  [2, ["message-status--untreated", "未处理"]],
  [3, ["message-status--confirmed", "已确认"]],
  [4, ["message-status--confirmed", "已确认"]], //已同意
  [5, ["message-status--rejected", "已拒绝"]]
  // [6, ["message-status--rejected", "已撤回"]]
]);

export const messageStatus: MessageStatusType[] = [
  {
    label: "全部",
    value: "all",
    type: "allNum",
    code: "",
    count: 0
  },
  {
    label: "未读",
    value: "unread",
    type: "unreadNum",
    code: "1",
    count: 0
  },
  {
    label: "未处理",
    value: "untreated",
    type: "waitConfirmNum",
    code: "2",
    count: 0
  },
  {
    label: "已确认",
    value: "confirmed",
    type: "confirmedNum",
    code: "3",
    count: 0
  },
  {
    label: "已拒绝",
    value: "rejected",
    type: "rejectNum",
    code: "5",
    count: 0
  }
];

export const tableColumns = [
  {
    title: "新消息描述",
    dataIndex: "msgDescription"
  },
  {
    title: "发起人",
    dataIndex: "sendName"
  },
  {
    title: "接收人",
    dataIndex: "recipientName"
  },
  {
    title: "发起日期",
    dataIndex: "createTime"
  },
  {
    title: "状态",
    slotName: "status"
  },
  {
    title: "操作",
    slotName: "operate"
  }
];
